#include<stdio.h>

int main()
{
    int N, n=1;
    scanf("%d",&N);
    while(N>1)
    {
        N--;
        n = 2*(n+1);
    }
    printf("%d",n);

    return 0;
}